package com.example.trb.vo;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

@Data
public class LoginRegisterVO {
    @Length(min = 6, max = 12, message = "账户的长度不合理")
    @NotBlank(message = "账户不能为空")
    private String account;

    @Length(min = 6, max = 12, message = "密码的长度不合理")
    @NotBlank(message = "密码不能为空")
    private String password;
}
